package com.mlk.engSystem.controller;

import com.mlk.core.component.page.Pager;
import com.mlk.engSystem.po.EngSysEmpRemainLog;
import com.mlk.engSystem.service.EngSysEmpRemainLogService;
import com.mlk.engSystem.vo.EngSysEmpRemainLogVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/eng/emp/remainLog")
@Controller
public class EngEmpRemainLogController {

    @Resource
    private EngSysEmpRemainLogService engSysEmpRemainLogService;

    @RequestMapping("index")
    public String index(){
        return "engSystem/remainLog";
    }


    /**
     * 分页数据展示
     * @param vo
     * @return
     */
    @RequestMapping("listPage")
    @ResponseBody
    public Pager listPage(EngSysEmpRemainLogVO vo){
        return this.engSysEmpRemainLogService.listPage(vo);
    }

}
